<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of pagination
 *
 * @author IT
 */
class pagination extends connection{
    function phan_trang($sobai){
        $per_page = 2;
        for($i = 1;$i<= ceil($sobai/$per_page);$i++){
        $trang = '<li>' . '<a href="index.php?page=' . $i . '">' . $i . '</a></li>';
        echo $trang;
        }
        $query = "SELECT * FORM";
    }
}
